import { 
  ACTIVE_MENU, 
} from '../actions/actionTypes';

export const navs = (state, action) => {
  return [
    { id: 1, title: 'Marvel' },
    { id: 2, title: 'Action' },
    { id: 3, title: 'Romance' },
    { id: 4, title: 'Comedy' },
    { id: 5, title: 'War' },
    { id: 6, title: 'Drama' },
  ]
}

export const activeMenu = (state={activeMenuId: 1}, action) => {
  switch (action.type) {
    case ACTIVE_MENU:
      return {
        activeMenuId: action.id,
      }
    default:
      return state
  }
}
